package com.miandian.entities;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("菜单")
public class Menu {
    @ApiModelProperty("主键id")
    @TableId(type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("父级菜单")
    private Integer parentId;
    @ApiModelProperty("菜单名称")
    private String name;
    @ApiModelProperty("路径")
    private String path;
//    @ApiModelProperty("创建时间")
//    private LocalDateTime createTime;
//    @ApiModelProperty("更新时间")
//    private LocalDateTime updateTime;
    @ApiModelProperty("组件")
    private String component;
//    @ApiModelProperty("操作人")
    private String perms;
    @ApiModelProperty("图标")
    private String icon;
//    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("头像")
    private String sortValue;
    @ApiModelProperty("状态")
    private Integer status;
}
